package top.whysu.study.thinkinjava.chapter10.innerclass.example2;

public class PizzaStore {
    private class SausagePizza implements Pizza{
        int size;
        private SausagePizza(int size) {this.size = size;}
        @Override
        public void getName() {System.out.println("Got a SausagePizza of size:\t" + size);}
        @Override
        public int getSize() {return size;}
    }

    public SausagePizza getSausagePizza(int size) {
        return new SausagePizza(size);
    }
}